package com.dly.hope.modle;

import lombok.Data;
import org.hibernate.annotations.Comment;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * @author linyu.dai
 * @project myserve 角色 权限表
 * @description
 * @creat 2022/10/9 17:06:52
 */
@Entity
@Table(name = "hope007_role_permissions")
@DynamicUpdate
@DynamicInsert

@Data
public class RolePermissions extends BaseEntity{

    @Id
    @Column(name = "id")
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "org.hibernate.id.UUIDGenerator")
    private String id;

    @Column(name = "permission_id")
    @Comment(value = "权限id")
    private String permissionId;

    @Column(name = "role_id")
    @Comment(value = "角色id")
    private String roleId;
}
